from django.db import models
from utils.BaseModel import BaseModel
from rest_framework import serializers
from rest_framework.response import Response


# Create your models here.
class NavModel(BaseModel):
    navname=models.CharField(max_length=20,verbose_name="导航名称")
    position=models.IntegerField(verbose_name="导航位置",default=0)
    def __str__(self):
        return self.navname
    class Meta:
        db_table="navmodel"
class BannerModel(BaseModel):
    title=models.CharField(max_length=20,verbose_name="轮播图标题")
    img=models.CharField(max_length=200,verbose_name="轮播图")
    url=models.CharField(max_length=200,verbose_name="轮播图链接")
    def __str__(self):
        return self.title
    class Meta:
        db_table="fgbanner"

